<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
        $this->view->title = "Zend Deom Title";
    }

    public function indexAction()
    {
        // action body
	//$this->view->title = "Zend - HOME";
    }
    
    public function listAction(){
	$this->view->title = "列表 - List";
	$model = new Application_Model_User();
	$result = $model->fetchAll();
	$this->view->display('index.phtml');
	//$this->view->display('smarty/index.phtml');
    }
    
    public function mailAction(){
	$mail = new App_Mail();
	$mail->setting();
	$mail->sendmail();
	$this->_helper->viewRenderer->setNoRender();
    }

}

